package org.glut;


import java.util.*;

public class Main {

    public static void main(String[] args) {
        try {
            fun(0);
        }catch (Exception e){
            System.out.println("main");
        }
    }

    public static void fun(int n) throws Exception{
           try {
               int i;
               i = 100/n;
           }catch (Exception e ){
               System.out.println("捕获到算术异常");
               throw new Exception();
           } finally {
               System.out.println("finally");
           }
    }
}
